const color = new Map();
/** 报名（录取）状态 */
color.set('axBooleanType', [{
    value: true,
    text: "是",
    color: "green"
}, {
    value: false,
    text: "否",
    color: "rgb(255, 85, 0)"  //volcano
}]);
/** 报名（录取）状态 */
color.set('enrollStatus', [{
    value: 1,
    text: "报名",
    color: "green"
}, {
    value: 2,
    text: "拟录取",
    color: "red"
}, {
    value: 3,
    text: "录取",
    color: "blue"
}]);

export const axcolor = (enumName: string, value: any) => {
    const v = color.get(enumName);
    const f = v && v.find((f: any) => f.value === value);
    return f && f.color;
}